package nl.soekoor.recipes.gui.pagebean;

import nl.soekoor.recipes.data.Recipe;
import nl.soekoor.recipes.services.impl.RecipeServiceImpl;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.util.Assert;

public class RecipeUiBean implements InitializingBean {
	
	private String name;
	private int id;
	private RecipeServiceImpl recipeService;
	private Recipe recipeBean;
	
	public void afterPropertiesSet() throws Exception {
		Assert.notNull(getRecipeServiceImpl(), "recipeService must be set");
		
	}
	
	public RecipeServiceImpl getRecipeServiceImpl() {
		return recipeService;
	}

	public void setRecipeService(RecipeServiceImpl recipeService) {
		this.recipeService = recipeService;
	}
	

}
